import request from "@/utils/request";

export function listSysUser(data) {
    return request({
        url: '/system/sys_user/list',
        method: 'get',
        params: data
    })
}

export function addSysUser(data) {
    return request({
        url: '/system/sys_user/insert',
        method: 'post',
        data: data
    })
}

export function deleteSysUser(userId) {
    return request({
        url: '/system/sys_user/delete/' + userId,
        method: 'delete'
    })
}

export function getSysUser(userId) {
    return request({
        url: '/system/sys_user/' + userId,
        method: 'get'
    })
}

export function updateSysUser(data) {
    return request({
        url: '/system/sys_user/update',
        method: 'put',
        data: data
    })
}

export function changeSysUserStatus(data) {
    return request({
        url: '/system/sys_user/changeStatus',
        method: 'put',
        data: data
    })
}

export function resetPwd(data) {
    return request({
        url: '/system/sys_user/resetPwd',
        method: 'put',
        data: data
    })
}
